import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//暗黑模式需要的样式
import 'element-plus/theme-chalk/dark/css-vars.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import router from './router'
import pinia from './store'
import gloablComponent from './components/index'
//svg插件需要的配置代码
import 'virtual:svg-icons-register'
// 引入路由鉴权文件
import './permisstion'
//全局样式
import './styles/index.scss'
import './fonts/style.css'
import 'default-passive-events'

createApp(App)
  .use(ElementPlus, {
    locale: zhCn,
  })
  .use(gloablComponent)
  .use(router)
  .use(pinia)
  .mount('#app')
